<div class="row">
	<div class="col-md-12">
		<!-- Custom Tabs -->
		<div class="nav-tabs-custom">
			<ul class="nav nav-tabs">
				<li>
					<a href="<?php echo base_url();?>employers/welcome" > Welcome</a>
				</li>
				<li class="active">
					<a href="<?php echo base_url();?>employers/job-applications"> Job Applications</a>
				</li>
				<li>
					<a href="<?php echo base_url();?>employers/approved-job-applications">Approved Applications</a>
				</li>
				<li>
					<a href="<?php echo base_url();?>employers/rejected-job-applications">Rejected Applications</a>
				</li>

				<li class="dropdown pull-right">
					<a class="dropdown-toggle" data-toggle="dropdown" href="#"><i class="glyphicon glyphicon-user"/></i> <?php echo $username; ?>
					<span class="caret"></span> </a>
					<ul class="dropdown-menu">
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/change-picture">Change Picture</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/change-password">Change Password</a>
						</li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/profile">Profile</a>
						</li>
						<li role="presentation" class="divider"></li>
						<li role="presentation">
							<a role="menuitem" tabindex="-1" href="<?php echo base_url(); ?>employers/logout">Logout</a>
						</li>
					</ul>
				</li>
				
			</ul>
			<div class="tab-content">
				<div class="tab-pane active" id="tab_1">

					<div class="row">
						<div class="col-xs-12">
							<div class="box">
								<div class="box-header">
									<h3 class="box-title"><span style="color:#3C8DBC !important;"><span class="glyphicon glyphicon-folder-open"></span> &nbsp; List of the jobseekers applied for your jobs</span></h3>
									<!--<a href="<?php echo base_url();?>control-jobseekers/insert-jobseeker"><button type="button" class="btn btn-primary pull-right" style="margin-right: 10px; margin-top: 5px;"><span class="glyphicon glyphicon-plus"></span> Add New</button></a>-->
								</div><!-- /.box-header -->
								<div class="box-body table-responsive">
									<table id="example2" class="table table-bordered table-hover">
										<thead>
											<tr>
												<th>Seeker </th>
												<th>Title</th>
												<th>Applied Date</th>
												
												<th>Action</th>
											</tr>
										</thead>
										<tbody>
											<?php
												foreach($job_applications->result() as $job_app){
													$first_name=$job_app->first_name;
													$last_name=$job_app->last_name;
													$title=$job_app->title;
													$apply_status=$job_app->apply_status;
													$id=$job_app->job_seeker_applied_job_id;
													$apply_date=$job_app->apply_date;
											?>
													<tr>
														<td><?php echo ucfirst($first_name).".".strtoupper($last_name);?></td>
														<td><?php echo $title;?></td>
														<td><?php echo $apply_date;?></td>
				
														<td>
															<a href="<?php echo base_url();?>employers/approved-job-apply/<?php echo $id;?>" class="btn btn-sm btn-primary" title="Approved Job Apply"><span class="glyphicon glyphicon-ok"></span> Approved</a>
															<a href="<?php echo base_url();?>employers/rejected-job-apply/<?php echo $id;?>" class="btn btn-sm btn-danger" onclick="return confirm('Are you sure want to rejected ?');" title="Rejected Job Apply"><span class="glyphicon glyphicon-remove"></span> Rejected</a>
														</td>
													</tr>
											<?php
												}
											?>

										</tbody>
										<tfoot>
											<tr>
												<th>Seeker </th>
												<th>Title</th>
												<th>Applied Date</th>
												
												<th>Action</th>
											</tr>
										</tfoot>
									</table>
								</div><!-- /.box-body -->
							</div><!-- /.box -->

						</div>

					</div><!-- /.row -->
				</div><!-- /.tab-pane -->
				

			</div><!-- /.tab-content -->
		</div><!-- nav-tabs-custom -->
	</div><!-- /.col -->
</div>
